package com.lagou.task17;

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = 8217882955610725921L;
    private String userName;
    private String password;
    private transient String phonename;//transient标示标示不参与序列化

    public User() {
    }

    public User(String userName, String password, String phonename) {
        this.userName = userName;
        this.password = password;
        this.phonename = phonename;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhonename() {
        return phonename;
    }

    public void setPhonename(String phonename) {
        this.phonename = phonename;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", phonename='" + phonename + '\'' +
                '}';
    }
}
